package test.exception;

import test.rspenum.IResponseEnum;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : example
 * @ Author: XuLeHuang
 * @ Date: 2022/12/8 11:25
 * @ Description:
 */
public class BaseException extends RuntimeException{
    private IResponseEnum iResponseEnum;

    public BaseException(IResponseEnum responseEnum, Object[] args, String message) {
        super(message);
        this.iResponseEnum = responseEnum;
    }
    public BaseException(IResponseEnum responseEnum, Object[] args, String message, Throwable cause) {
        super(message , cause);
        this.iResponseEnum = responseEnum;
    }

    public IResponseEnum getResponseEnum() {
        return this.iResponseEnum;
    }
}
